package com.fdb.efp.nls.service.impl;

import com.fdb.basic.framework.core.base.FrameworkService;
import com.fdb.efp.nls.service.dao.LoanCompensationStatementManyiTempDao;
import com.fdb.efp.nls.service.domain.LoanCompensationStatementManyiTemp;
import com.fdb.efp.nls.service.facade.LoanCompensationStatementManyiTempService;
import com.fdb.efp.nls.service.vo.LoanCompensationStatementManyiTempVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 
 * 百度代偿清单满易临时表
 * 
 * @author liyakui
 * @since 2019年1月7日 下午8:12:47
 * @version 1.0
 */
@Service("loanCompensationStatementManyiTempService")
public class LoanCompensationStatementManyiTempServiceImpl implements LoanCompensationStatementManyiTempService, FrameworkService {
	Logger logger = LoggerFactory.getLogger(LoanCompensationStatementManyiTempServiceImpl.class);
	@Autowired
	private LoanCompensationStatementManyiTempDao loanCompensationStatementManyiTempDao;
	@Override
	public int insert(LoanCompensationStatementManyiTempVo record) {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public int insertSelective(LoanCompensationStatementManyiTempVo record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<LoanCompensationStatementManyiTempVo> queryCompensationStatementManyiTemp(
			LoanCompensationStatementManyiTempVo loanCompensationStatementManyiTempVo) throws Exception {
		logger.info("查询数据开始！参数为：" + loanCompensationStatementManyiTempVo);
		List<LoanCompensationStatementManyiTempVo> list = null;
		try {
			LoanCompensationStatementManyiTemp loanCompensationStatementManyiTemp = new LoanCompensationStatementManyiTemp();
			beanCopy(loanCompensationStatementManyiTempVo, loanCompensationStatementManyiTemp);
			List<LoanCompensationStatementManyiTemp> loanCompensationStatementManyiTemps = loanCompensationStatementManyiTempDao
					.queryCompensationStatementManyiTemp(loanCompensationStatementManyiTemp);
			list = (List<LoanCompensationStatementManyiTempVo>) beansCopy(loanCompensationStatementManyiTemps,
					LoanCompensationStatementManyiTempVo.class);
			logger.info("查询数据成功！结果为：" + list);
		} catch (Exception e) {
			e.printStackTrace();
			logger.info("查询数据异常！" + e.getMessage());
			throw e;
		}

		return list;
	}

}
